/*
 * @Author: ZhanXie
 * @Date: 2020-09-04 20:32:37
 * @LastEditors: ZhanXie
 * @LastEditTime: 2020-09-04 20:39:12
 * @Description: 博客数据模型
 * @FilePath: /weibo/src/db/model/Blog.js
 */
const seq = require('../seq')
const { TEXT, STRING, INTEGER } = require('../types')

const Blog = seq.define('blog', {
  userId: {
    type: INTEGER,
    allowFull: false,
    comment: '用户 ID'
  },
  content: {
    type: TEXT,
    allowFull: false,
    comment: '微博内容'
  },
  image: {
    type: STRING,
    comment: '图片地址'
  }
})

module.exports = Blog